<?php
  $sql = 'select * from leerlingen..leerlingen';
  $conn = mssql_connect('localhost');
  mssql_select_db('rapport',$conn);
	$rs = mssql_query($sql);

  while($rij = mssql_fetch_array($rs)){
  echo "<li>" . $rij["voornaam"] . $rij["achternaam"] . $rij["klas"] . "</li>";
}
//close the connection
mssql_close($conn);
?> 